package com.keba.lamp.oauth.vo.param;

import cloud.tianai.captcha.validator.common.constant.TrackTypeConstant;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import java.util.List;

@lombok.Data
public class ImageCaptcha {
    /**
     * 背景图片宽度.
     */
    private Integer bgImageWidth;
    /**
     * 背景图片高度.
     */
    private Integer bgImageHeight;
    /**
     * 模板图片宽度.
     */
    private Integer templateImageWidth;
    /**
     * 模板图片高度.
     */
    private Integer templateImageHeight;
    /**
     * 滑动开始时间.
     */
    private String startTime;
    /**
     * 滑动结束时间.
     */
    private String stopTime;
    private Integer left;
    private Integer top;
    /**
     * 滑动的轨迹.
     */
    private List<Track> trackList;
    /**
     * 扩展数据，用户传输加密数据等.
     */
    private Object data;

    @lombok.Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class Track {
        /**
         * x.
         */
        private Float x;
        /**
         * y.
         */
        private Float y;
        /**
         * 时间.
         */
        private Float t;
        /**
         * 类型.
         */
        private String type = TrackTypeConstant.MOVE;
    }
}
